<div class="first_top">
    <!--<a href="JavaScript:history.go(-1)"><span class="backImg"><img lazy-src="images/baijiantou.png"></span></a>-->
    <a ng-click="vm.goback()"><span class="backImg"><img lazy-src="images/baijiantou.png"></span></a>
    <h class="first_title">我的订单</h>
</div>
<div class="myorder_top">
    <div class="seek-cont" ng-show="vm.allorders.length==0">
        <div class="seek-error">
            <p class="seek_txt" style="text-align: center;margin-top: 50px">{{vm.no_order_text}}</p>
        </div>
    </div>
    <ul ng-repeat="order in vm.allorders">
        <li ng-repeat="shop in order.ordersShops">
            <div class="myorder_content" ng-click="vm.enterShop(shop.shopid,true)">
                <div class="shopLogo">
                    <img class="myorder_guaipopo" ng-src="{{shop.shopLogo?shop.shopLogo:'http://sfs.shuwang.info/sfcommon/1001/2017-07-19/6s4YIw9oL-diancan.jpg'}}">
                </div>
                <div class="orderShop">
                    <span>
                        <span class="shopName">{{shop.shopName}}</span>
                        <img class="myorder_huijiantou" lazy-src="images/huijiantou.png">
                    </span>
                    <div class="order_status colorRed" ng-show="order.paystate!=1&&order.status==0">等待支付</div>
                    <div class="order_status colorRed" ng-show="order.paystate!=1&&order.status==4">已取消</div>
                    <div class="order_status colorRed" ng-show="order.paystate==1&&order.status==0">等待商家接单</div>
                    <div class="order_status colorRed" ng-show="order.paystate==1&&order.status==1">商家已接单</div>
                    <div class="order_status colorRed" ng-show="order.paystate==1&&order.status==5">商家已拒单</div>
                    <div class="order_status" ng-show="order.paystate==1&&(order.status==2||order.status==3)">订单已完成</div>
                </div>
            </div>
            <div class="order_goods" ng-click="vm.orderdetail(order)">
                <div class="myorder_food" ng-repeat="good in shop.ordersShopsGoods">
                    <span class="float_word_order">{{good.goodsName}}</span>
                    <span class="myorder_money">×{{good.num}}</span>
                </div>
                <div class="myorder_middle">
                    <span class="myorder_createTime">{{order.createTime| date:'yyyy-MM-dd HH:mm:ss'}}</span>
                    <span class="myorder_underway">实付<strong>￥{{order.payment}}</strong></span>
                    <span class="myorder_underway">共{{order.totalNum }}件商品</span>
                </div>
            </div>
            <div class="order_operation">
                <div ng-show="order.checkverifi == 1">
                    <div style="text-align: center;float: left;padding: 6px 18px;">
                        <img style="width: 60px;height: 50px;margin-top: -30px" src="images/verification.png" alt=""/>
                    </div>
                </div>
                <div ng-show="order.checkverifi == 0">
                    <div style="text-align: center;float: left;padding: 6px 18px;">
                        <img style="width: 60px;height: 50px;margin-top: -30px" src="images/unverification.png" alt=""/>
                    </div>
                </div>
                <!--<div>
                    <div style="text-align: center;float: left;padding: 6px 18px;">核销码:&nbsp<span style="color: red;font-size: 15px;font-weight: 900">{{order.code}}</span></div>
                </div>-->
                <div ng-show="order.paystate!=1&&order.remainingTime>0">
                    <button ng-click="vm.immpay(order)"><span ng-show="order.remainingTime>0">去支付（{{order.remainingTime|date:'mm:ss'}}）</span></button>
                </div>
                <div>
                    <button ng-hide="order.paystate!=1&&order.remainingTime>0" ng-click="vm.anotherOne(shop)">再来一单</button>
                    <button ng-show="order.paystate == 0 && order.status == 0" ng-click="vm.anotherOne(shop)"><span>重新下单</span></button>
                </div>
                <!--<div ng-show="order.paystate==1&&order.status==0">
                    <button ng-click="anotherOne(shop)">再来一单</button>
                </div>
                <div ng-show="order.paystate==1&&order.status==1">
                    <button ng-click="anotherOne(shop)">再来一单</button>
                </div>
                <div ng-show="order.paystate==1&&order.status!=0&&order.status!=1">
                    <button ng-click="anotherOne(shop)">再来一单</button>
                </div>-->
            </div>
        </li>
    </ul>
    <div class="field-load" ng-show="vm.flat0==true">
        <div ng-show="vm.load0 == true" class="field-load-loading">
            正在努力加载中...
        </div>
        <div ng-hide="vm.load0 == true" class="field-load-finish">
            没有更多订单了
        </div>
    </div>
    <div class="nologinshow">
        <div class="loginnote">
            你还未登录
        </div>
        <button class="nowlogin" ng-click="vm.nowlogin()">马上登录</button>
    </div>
</div>
